package com.qzboot.common.constant;

/**
 * @author zengzhihong
 */
public class SysConst {

    public static final String CAPTCHA_SESSION_KEY = "LOGIN_CAPTCHA";


    /**
     * 正常状态
     */
    public static final Integer NORMAL = 0;

    /**
     * 非正常状态
     */
    public static final Integer NO_NORMAL = 1;

    /**
     * 管理员ID
     */
    public static final Long ADMIN_USER_ID = 1L;

    /**
     * 12小时后过期
     */
    public final static long SYS_TOKEN_EXPIRE_MS = 60 * 60 * 6 * 1000;

    /**
     * 默认密码
     */
    public final static String SYS_DEFAULT_PASSWORD = "123456";


    public enum MenuType {

        /**
         * 目录
         */
        CATALOG(0),
        /**
         * 菜单
         */
        MENU(1),
        /**
         * 按钮
         */
        BUTTON(2);

        private Integer value;

        MenuType(Integer value) {
            this.value = value;
        }

        public Integer getValue() {
            return value;
        }
    }
}
